// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   OrderStatusTabSclPane.java

package com.boci.clientapp.orderstatus;

import com.boci.clientapp.main.ApplicationService;
import com.boci.common.ui.AbstractTabSclPane;
import java.util.Locale;

// Referenced classes of package com.boci.clientapp.orderstatus:
//            OrderStatusScrPanel, OrderDetailScrPanel, OrderCancelReviewScrPanel, OrderCancelConfirmScrPanel, 
//            OrderChangeEditScrPanel, OrderChangeReviewScrPanel, OrderChangeConfirmScrPanel

public class OrderStatusTabSclPane extends AbstractTabSclPane
{

    public OrderStatusTabSclPane(Locale pLocale)
    {
        super(pLocale);
        orderStatusPanel = new OrderStatusScrPanel(pLocale, "ORDER_STATUS_MODULE", "ORDER_STATUS_SCREEN");
        orderDetailPanel = new OrderDetailScrPanel(pLocale, "ORDER_STATUS_MODULE", "ORDER_STATUS_DETAIL");
        orderCancelReviewPanel = new OrderCancelReviewScrPanel(pLocale, "ORDER_STATUS_MODULE", "ORDER_STATUS_CANCEL_REVIEW");
        orderCancelConfirmPanel = new OrderCancelConfirmScrPanel(pLocale, "ORDER_STATUS_MODULE", "ORDER_STATUS_CANCEL_CONFIRM");
        orderChangeEditPanel = new OrderChangeEditScrPanel(pLocale, "ORDER_STATUS_MODULE", "ORDER_STATUS_CHANGE_EDIT");
        orderChangeReviewPanel = new OrderChangeReviewScrPanel(pLocale, "ORDER_STATUS_MODULE", "ORDER_STATUS_CHANGE_REVIEW");
        orderChangeConfirmPanel = new OrderChangeConfirmScrPanel(pLocale, "ORDER_STATUS_MODULE", "ORDER_STATUS_CHANGE_CONFIRM");
        addPanel("ORDER_STATUS_SCREEN", orderStatusPanel);
        addPanel("ORDER_STATUS_DETAIL", orderDetailPanel);
        addPanel("ORDER_STATUS_CANCEL_REVIEW", orderCancelReviewPanel);
        addPanel("ORDER_STATUS_CANCEL_CONFIRM", orderCancelConfirmPanel);
        addPanel("ORDER_STATUS_CHANGE_EDIT", orderChangeEditPanel);
        addPanel("ORDER_STATUS_CHANGE_REVIEW", orderChangeReviewPanel);
        addPanel("ORDER_STATUS_CHANGE_CONFIRM", orderChangeConfirmPanel);
    }

    public void showDefaultScr()
    {
        showScreen("ORDER_STATUS_SCREEN");
    }

    public void showScreen(String pStrScreen, boolean pRefreshPanel)
    {
        ApplicationService appServ = ApplicationService.getInstance();
        if(appServ != null)
            if(pStrScreen.equals("ORDER_STATUS_CANCEL_REVIEW") || pStrScreen.equals("ORDER_STATUS_CANCEL_CONFIRM") || pStrScreen.equals("ORDER_STATUS_CHANGE_EDIT") || pStrScreen.equals("ORDER_STATUS_CHANGE_REVIEW") || pStrScreen.equals("ORDER_STATUS_CHANGE_CONFIRM") || pStrScreen.equals("ORDER_STATUS_DETAIL"))
                appServ.enableAcctNo(false);
            else
                appServ.enableAcctNo(true);
        super.showScreen(pStrScreen, pRefreshPanel);
    }

    public String getModuleName()
    {
        return "ORDER_STATUS_MODULE";
    }

    private OrderStatusScrPanel orderStatusPanel;
    private OrderDetailScrPanel orderDetailPanel;
    private OrderCancelReviewScrPanel orderCancelReviewPanel;
    private OrderCancelConfirmScrPanel orderCancelConfirmPanel;
    private OrderChangeEditScrPanel orderChangeEditPanel;
    private OrderChangeReviewScrPanel orderChangeReviewPanel;
    private OrderChangeConfirmScrPanel orderChangeConfirmPanel;
}
